T
User-defined dialog result type.
Cocktail Help Reference
ShowDialogAsync<T>(IEnumerable<IDialogUICommand<T>>,Object,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogManager Class > ShowDialogAsync Method : ShowDialogAsync<T>(IEnumerable<IDialogUICommand<T>>,Object,String) Method



commands
A list of commands that can be invoked as part of the dialog.
content
The custom view model to host in the dialog.
title
Optional title of the dialog.

Glossary Item Box

Displays a modal dialog with a custom view model.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ShowDialogAsync(Of T)( _
   ByVal commands As IEnumerable(Of IDialogUICommand(Of T)), _
   ByVal content As Object, _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As DialogManager
Dim commands As IEnumerable(Of IDialogUICommand(Of T))
Dim content As Object
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowDialogAsync(Of T)(commands, content, title)
C# 
public Task<T> ShowDialogAsync<T>( 
   IEnumerable<IDialogUICommand<T>> commands,
   object content,
   string title
)
C++/CLI 
public:
Task<T^>^ ShowDialogAsyncgeneric<typename T>
( 
   IEnumerable<IDialogUICommand<T^>^>^ commands,
   Object^ content,
   String^ title
) 

Parameters

commands
A list of commands that can be invoked as part of the dialog.
content
The custom view model to host in the dialog.
title
Optional title of the dialog.

Type Parameters

T
User-defined dialog result type.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.